﻿package Message.Game
{
    import Framework.Serialize.*;
    import Message.Public.*;

    public class SPlayerTask extends Object
    {
        public var task:STask;
        public var createDt:Date;
        public var executeCount:int;
        public var status:int;
        public var extend:int;
        public var currentStep:int;
        public var canShare:Boolean;
        public var stepRecords:Array;

        public function SPlayerTask()
        {
            return;
        }// end function

        public function __write(param1:SerializeStream) : void
        {
            this.task.__write(param1);
            param1.writeDate(this.createDt);
            param1.writeInt(this.executeCount);
            param1.writeInt(this.status);
            param1.writeInt(this.extend);
            param1.writeInt(this.currentStep);
            param1.writeBool(this.canShare);
            SeqIntHelper.write(param1, this.stepRecords);
            return;
        }// end function

        public function __read(param1:SerializeStream) : void
        {
            this.task = new STask();
            this.task.__read(param1);
            this.createDt = param1.readDate();
            this.executeCount = param1.readInt();
            this.status = param1.readInt();
            this.extend = param1.readInt();
            this.currentStep = param1.readInt();
            this.canShare = param1.readBool();
            this.stepRecords = SeqIntHelper.read(param1);
            return;
        }// end function

    }
}
